package com.zhuoyue;


import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * 启动程序
 *
 * @author hewenze
 */

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableEncryptableProperties
@ComponentScan(basePackages = {"com.zhuoyue.system", "com.zhuoyue.common","com.zhuoyue.framework","com.zhuoyue.generator","com.zhuoyue"})
public class ZhuoYueApplication {
    //websocket 放入到spring容器
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

    public static void main(String[] args) {
        SpringApplication.run(ZhuoYueApplication.class, args);
        System.out.println("卓悦启动成功");
    }
}
